using UnityEngine;
using System.Collections;

public class SphereScript : MonoBehaviour
{
	private const float range = 2f;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update ()
	{
		GameObject.Find("SphereMeshLevel1").transform.Rotate(new Vector3(getR(), getR(), getR()));
		GameObject.Find("SphereMeshLevel2").transform.Rotate(new Vector3(-.1f * getR(), .1f * getR(), .1f * getR()));
		//GameObject.Find("SphereMeshLevel3").transform.Rotate(new Vector3(getR(), - getR(), getR()));
		//GameObject.Find("SphereMeshLevel4").transform.Rotate(new Vector3(getR(), getR(), - getR()));
		//GameObject.Find("SphereMeshLevel5").transform.Rotate(new Vector3(- getR(), - getR(), getR()));
	}
	private float getR()
	{
		return Random.Range(0, range) * Time.deltaTime;
	}
}
